.imageContainer {
    position: relative;
    width: 380px;
    height: 400px;
    cursor: pointer;
    transition: all 0.5s;
    z-index: 1;
}
  
.imageContainer:hover {
    filter: brightness(0.5);
}
  
.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s;
    border-radius: .25rem;
}
  
.overlay {
    position: absolute;
    bottom: 0;
    top: 45%;
    width: 100%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    transition: all 0.5s;
    z-index: 10;
}

.imageContainer:hover .overlay {
    opacity: 1;
}

/* 1024px */
@media (max-width: 1024px) {
    .imageContainer {
        width: 280px;
        height: 300px;
    }
}

/* 768px */
@media (max-width: 768px) {
    .imageContainer {
        width: 100%;
    }
}